<!--<?php
print<<<EF
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="templates/msystem/ljy.css" rel="stylesheet" type="text/css" />
<link href="ljy.css" rel="stylesheet" type="text/css" />
</head>

<base target="_self" />
<body style="text-align:left">
<!-- 
EF;
if($action=='list'){
print<<<EF
-->
<div id="toppath">ACS告警</div>

<table style=" float:left;" width="100%" border="0" cellpadding="3" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<th width="10%" align="center" valign="middle" bgcolor="#F0F0F0">编号</th>
<th width="10%" align="center" valign="middle" bgcolor="#F0F0F0">名称</th>
<th width="10%" align="center" valign="middle" bgcolor="#F0F0F0">流量</th>
<th width="10%" align="center" valign="middle" bgcolor="#F0F0F0">资源数量</th>
<th width="10%" align="center" valign="middle" bgcolor="#F0F0F0">预缓存</th>
<th width="10%" align="center" valign="middle" bgcolor="#F0F0F0">空间</th>
<th width="10%" align="center" valign="middle" bgcolor="#F0F0F0">端口</th>
</tr>

<!--
EF;
$i=0;
foreach($listip as $list)
{

$h=explode('.',$listip[$i]);
print<<<EF
-->
<tr>
<td>ACS-{$h[3]}</td>
<td>{$listip[$i]}</td>
<td><img src="images/normal.jpg" /></td>
<td>{$seednum_acs[$i]}</td>
<td><img src="images/normal.jpg" /></td>
<td>{$space_acs[$i]}</td>
<td><a href="alarm_acs.php?action=ports&describe={$listip[$i]}">{$port_acs[$i]}</a></td>
</tr>
<!--
EF;
$i++;
}
print<<<EF
-->
</table>
<!-- 
EF;
}elseif($action=='ports'){
print<<<EF
-->
<div id="toppath">ACS主机各端口告警</div>
<table style=" float:left;" width="100%" border="0" cellpadding="3" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<th width="30%" align="center" valign="middle" bgcolor="#F0F0F0">主机号</th>
<th width="40%" align="center" valign="middle" bgcolor="#F0F0F0">端口号</th>
<th width="30%" align="center" valign="middle" bgcolor="#F0F0F0">状态</th>
</tr>

<!-- 
EF;
$i=0;
foreach($list as $value){
print<<<EF
-->
<tr>
<td>$describe</td>
<td>$value[port]</td>
<td>{$imgport_acs[$i]}</td>
</tr>
<!-- 
EF;
$i++;
}
print<<<EF
-->

</table>
<!--
EF;
}
print<<<EF
-->
</body>
</html>
<!--
EF;
?>
-->